package com.surveillance.DAO;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.surveillance.entities.NiveauSalles;
import com.surveillance.entities.Salle;

@Repository("NiveauSallesDao")
public class NiveauSallesDao extends BaseDao<NiveauSalles> {
	public List findBySalleId(Long salleId) {
		return getHibernateTemplate().find(
				"from NiveauSalles where salleid = " + salleId);
	}

	public List findByNiveauSpec(int niveau, boolean spec) {
		return getHibernateTemplate().find(
				"from NiveauSalles where niveau = " + niveau + " and specialite = "
						+ spec);
	}

}
